package com.hbk.programe;

public class Node {
	
	private String clazz;
	
	private String type;
	
	private String field;
	
	public Node(String type) {
		super();
		this.clazz = "";
		this.type = type;
		this.field = "";
	}

	public Node(String clazz, String type, String field) {
		super();
		this.clazz = clazz;
		this.type = type;
		this.field = field;
	}

	public String getClazz() {
		return clazz;
	}

	public void setClazz(String clazz) {
		this.clazz = clazz;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public String getField() {
		return field;
	}

	public void setField(String field) {
		this.field = field;
	}
	
	public boolean isClass() {
		return clazz.equals("");
	}
	
	@Override
	public String toString() {
		return String.format("%s %s", type,field);
	}

}
